package com.ag.hmk.action;

import com.ag.common.BaseAction;
import com.ag.hmk.service.impl.LawServImpl;

/**
 * @author hmk
 * 删除法规ACTION
 */
public class DelLawAction extends BaseAction {

	private static final long serialVersionUID = 956512311L;
	
	private LawServImpl lawServImpl;
	private String lawID1;    //法规ID
	private String delString; //返回值，标志是否删除成功
	
	/*
	 * 删除法规
	 */
	public String delLaw()throws Exception{
		try {
			lawServImpl.detele(lawID1);
			this.setDelString("1");
		} catch (Exception e) {
			e.printStackTrace();
			this.setDelString("0");
		}
		
		return "delLawOK";
	}
	
	
	
	public String getDelString() {
		return delString;
	}
	public void setDelString(String delString) {
		this.delString = delString;
	}
	public void setLawServImpl(LawServImpl lawServImpl) {
		this.lawServImpl = lawServImpl;
	}
	public void setLawID1(String lawID1) {
		this.lawID1 = lawID1;
	}

}
